<!--<script src="__JS__/jquery.min.js?v=2.1.4"></script>-->
<script src="__JS__/bootstrap.min.js?v=3.3.6"></script>
<script src="__JS__/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="__JS__/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__JS__/plugins/layer/layer.min.js"></script>
<script src="__JS__/hplus.min.js?v=4.1.0"></script>
<script src="__JS__/contabs.min.js"></script>
<script src="__JS__/plugins/pace/pace.min.js"></script>
<script>
    $("button").on('click',function(){
        if ( $(this).hasClass("confirm") ) {
            if ( !confirm("确定要执行操作吗?") ) {
                console.log("取消操作");
                return;
            } else {
                console.log("继续操作");
            }
        }
        var href = $(this).attr("href");
        var form = $(this).attr("form");
        var action = $(this).attr("action");
        if ( href ){
            window.location.href = href;
        } else if ( form && action ) {
            $("#"+form)
                .attr("action",action)
                .submit();
        }
    });

    $("input[name=checkAll]").on('change',function(){
        console.log("改变了");
        console.log($(this).prop("checked"));
        var child = $(this).attr("child");
        if ( $(this).prop("checked") ) {
            $("."+child).prop("checked",true);
        } else {
            $("."+child).prop("checked",false);
        }
    });

</script>
